<?php 
class GoodsApi extends Api{
	
	// 返回本校商品列表
	public function schoolgoods($map)
	{
		$list = M('')->field('g.id, g.uid, g.uname, g.title, g.gprice, g.gnumber, g.gimage, g.utime, bf.qq')
		->table("{$db_prefix}goods AS g LEFT JOIN {$db_prefix}user_basicfile AS bf ON g.uid=bf.uid")
		->where($map)->order('g.utime DESC')->findAll ();
		return $list;
	}
}